Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /
Chapter 3 - Endpoints / Endpoints Reference
Functions / Obtaining Information About an Endpoint


OTGetEndpointInfo

Obtains information about an endpoint that has been opened.

C INTERFACE
OSStatus OTGetEndpointInfo(EndpointRef ref, TEndpointInfo* info);
C++ INTERFACE
OSStatus TEndpoint::GetEndpointInfo(TEndpointInfo* info);
PARAMETERS
ref
The endpoint reference of the endpoint whose characteristics you want to determine.
info
A pointer to a TEndpointInfo structure (page 3-48) that describes the endpoint's mode of service and the size of the buffers you can use to specify address and option information and to hold data.
DESCRIPTION
The OTGetEndpointInfo function returns information about

COMPLETION EVENT CODES
T_GETINFOCOMPLETE0x2000000AThe OTGetEndpointInfo function has completed. The cookie parameter of the endpoint's notifier function contains the info parameter.
VALID STATES
All

SEE ALSO
The OTGetEndpointInfo function returns a TEndpointInfo structure (page 3-48).

To obtain the current state of the endpoint, use the OTGetEndpointState function (described next).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996